package com.meirengu.webview.service.impl;

import com.meirengu.service.impl.BaseServiceImpl;
import com.meirengu.webview.dao.KwUserErrorDao;
import com.meirengu.webview.model.KwUserError;
import com.meirengu.webview.model.User;
import com.meirengu.webview.service.KwUserErrorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * User服务实现层
 *
 * @author maoruxin
 * @create Sun Dec 10 09:58:45 CST 2017
 */
@Service
public class KwUserErrorServiceImpl extends BaseServiceImpl<KwUserError> implements KwUserErrorService {

    private static final Logger logger = LoggerFactory.getLogger(KwUserErrorServiceImpl.class);

    @Autowired
    KwUserErrorDao kwUserErrorDao;


    public Integer isExist(String mobile) {
        return kwUserErrorDao.isExist(mobile);
    }

    public User getByMobile(String mobile) {
        return kwUserErrorDao.getByMobile(mobile);
    }


}
